package sg.edu.nus.iss.vmcs.entity;



public class StoreItem {

	private StoreObject content;
	private int quantity;

	public StoreItem(StoreObject content, int quantity) {
		this.content = content;
		this.quantity = quantity;
	}

	public StoreObject getContent() {
		return content;
	}

	public void setContent(StoreObject ct) {
		content = ct;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int getQuantity() {
		return quantity;
	}

	public void store() {
		quantity++;
	}
	
	public void decrement() {
		quantity--;
		if (quantity < 0)
			quantity = 0;
	}

	public void increment() {
		quantity++;
	}
}